#pragma once

using namespace System;

namespace FindImageEdgelib {

	

		public ref class FindImageBlot
		{
		public:
			FindImageBlot(array<byte,2>^ ImageArray,long SX,long SY,long EX,long EY,byte Gray,long Area,bool Flag)
			{
				this->m_ImageArray =ImageArray;
				this->m_SX =SX;
				this->m_SY =SY;
				this->m_EX =EX;
				this->m_EY =EY;
				this->m_Area=Area;
				this->m_Flag=Flag;
				this->m_Gray=Gray;

			}
			bool Runing(long X,long Y,array<long,1>^ result);


		private:
			void Fun( long i, long j);
		private:
			array<byte,2>^ m_ImageArray;
			unsigned long m_SX,m_SY,m_EX,m_EY,m_Area,m_Counts,m_MaxX,m_MaxY,m_MinX,m_MinY,N,ExitCounts;
			byte m_Gray;
			bool m_Flag;
			long Ti,Tj;
			
		};


}